From: Jo-Philipp Wich Date: Thu, 11 Nov 2021 18:55:18 +0000 (+0100) Subject: luci-base: luci.js: fix undefined variable access in Request.request() X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=d79b81b852bf06a30b6b5411d2c2c6ce1b2b47b8;p=project%2Fluci.git luci-base: luci.js: fix undefined variable access in Request.request() Signed-off-by: Jo-Philipp Wich (cherry picked from commit de4c4f7fd445e7a59691e50edead472900270e59) --- diff --git a/modules/luci-base/htdocs/luci-static/resources/luci.js b/modules/luci-base/htdocs/luci-static/resources/luci.js index b06688ea29..2cc4a701f5 100644 --- a/modules/luci-base/htdocs/luci-static/resources/luci.js +++ b/modules/luci-base/htdocs/luci-static/resources/luci.js @@ -764,7 +764,7 @@ if (opt.content != null) { switch (typeof(opt.content)) { case 'function': - content = opt.content(xhr); + content = opt.content(opt.xhr); break; case 'object':